<!-- 主页的上传图纸界面，控制器为appjs里面的ModalLoginCtrl -->
<div class="panel panel-success" >
  	<div class="panel-heading text-center">
    	<h1>上传图纸</h1>
  	</div>

  	<form class="panel-body" action="/restful/upload"  method="post" enctype="multipart/form-data">
  		<!--选择上传文件  -->
  		<div class="my-upload-fileshow">
  			<span>文件名：{{uploadFileName}}</span><!--fileNameChanged改变  -->
  			<a href="#" class="btn btn-primary pull-right my-upload-btn">
  				<span class="glyphicon glyphicon-folder-open" aria-hidden="true"> 选择文件</span> 
  				<!-- file-model="myFile"指令 -->
    			<input type="file" file-model="myFile" name="file" value="" onchange="angular.element(this).scope().fileNameChanged(this.value)" />
			</a>
  		</div>
		<!-- 文件更新备注 -->
		<br>
		<div class="my-upload-textarea-div">
			<h5><span class="glyphicon glyphicon-exclamation-sign"></span>  以下备注必须填写，写上该版本图纸的修改要点，或者一些注意事项：</h5>
			<textarea ng-model="textareaValues"></textarea>
		</div>
		<!-- 当单击上传按钮时如果不符合填写条件会给出一些提示 -->
		<div class="alert alert-danger" role="alert" ng-show="myTipShow">
			<button type="button" class="close"><span aria-hidden="true" ng-click="closeTip()">&times;</span></button>
			<strong>错误!   </strong>{{myTip}}
		</div>
		<!-- 确定按钮 -->
		<button type="button" ng-click="ok()" class="btn btn-success">
				<span class="glyphicon glyphicon-ok" aria-hidden="true"></span> 确认上传
		</button>
		 <!-- 取消按钮 -->
		<button type="button" ng-click="cancel()" class="btn btn-danger">
				<span class="glyphicon glyphicon-remove" aria-hidden="true"></span> 取消退出
		</button>

  	</form>
 </div>